사이트 내 전체검색
PHP
[php] CURL
로빈아빠
https://cmd.kr/php/492 URL이 복사되었습니다.

본문

CURL

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

* 참고사이트
http://kr2.php.net/curl
http://curl.haxx.se
http://curl.haxx.se/libcurl/php/install.html

* Installing the PHP/CURL binding
You might also find it helpful to install Apache + PHP + CURL + SSL using the Apache Toolbox(http://www.apachetoolbox.com). Check further down for Windows install. Manual Build and Install Build OpenSSL (In openssl-0.9.x directory) ./config make make test make install Build CURL (In curl-7.x.x directory) ./configure --with-ssl=/usr/local/ssl (if ssl was installed here) make make install (libcurl.so is now in /usr/local/lib) Build PHP (In php-4.x.x directory) ./configure --with-openssl=/usr/local/ssl \ --with-curl=/usr/local/lib --with-apache=../apache_1.3.x make make install Build and install SSL-aware Apache (In mod_ssl-2.8.xxxx directory) ./configure --with-apache=../apache1.3.x --with-ssl=/usr/local/ssl \ --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a Follow remaining steps the output tells. Restart your apache... BINGO! (contributed by Lim Chung Keng) Windows Activation of PHP/CURL on windows is starting up notepad (or similar) and removing a semicolon from the following line in php.ini: ;extension=php_curl.dll (Mentioned here: php.net/manual/install.windows.extensions.php) libcurl is statically linked in, but the SSL libraries are not, thus the note to Win32 users on php.net/curl. The two SSL-related DLLs from the OpenSSL project (libeay32.dll and ssleay32.dll) are bundled with the Windows PHP package. In order to SSL-based protocols (such as HTTPS and FTPS) in your Windows environment, you must copy libeay32.dll and ssleay32.dll from the DLL folder of the PHP/ binary package to the SYSTEM folder of your Windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM). (Michael Wallner contributed to this)

댓글목록

등록된 댓글이 없습니다.

PHP
871 (10/18P)

Search

Copyright © Cmd 명령어 3.16.90.182